<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:camunda="http://camunda.org/schema/1.0/bpmn" typeLanguage="http://www.w3.org/2001/XMLSchema"
             expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples">

  <process id="testProcessEjbWithException" isExecutable="true">

    <startEvent id="theStart" />

    <subProcess id="sub" >
      <startEvent id="subStart" />
      <serviceTask id="servicetask1"
                   camunda:delegateExpression="${SLSBClientDelegate}"
                   camunda:async="true" />
      <endEvent id="subEnd" />
      <sequenceFlow sourceRef="subStart" targetRef="servicetask1"/>
      <sequenceFlow sourceRef="servicetask1" targetRef="subEnd"/>
    </subProcess>

    <userTask id="waitHere" />

    <sequenceFlow sourceRef="theStart" targetRef="sub" />
    <sequenceFlow sourceRef="sub" targetRef="waitHere" />
    <sequenceFlow sourceRef="waitHere" targetRef="endevent1" />
    <endEvent id="endevent1" />

  </process>

</definitions>
